<template>
    <div class="merchat-num">
        <div class="top">商戶編號：{{ busiId }}</div>
        <div class="level" v-if="level">商戶等級：<star :level="level"/></div>
    </div>
</template>

<script setup>
import star from "./star.vue"
import { useUserStore } from "@/store/index";
import { storeToRefs } from "pinia";

const props = defineProps({
    level: {
        type: Number,
        default: 0
    },
    // busiId: {
    //     type: String,
    //     default: ""
    // }
})

const userStore = useUserStore();
const busiId = storeToRefs(userStore).user_id;

</script>

<style scoped>
.merchat-num {
    display: flex;
    color: #3D3D3D;
    font-weight: bold;
    font-size: 36px;
}
.top {
    color: #3D3D3D;
    font-weight: bold;
    font-size: 36px;
}
.level {
    margin-left: 62px;
    display: flex;
}
</style>